package com.viroyal.monitorlib;

/**
 * Created by zy on 2018/5/7.
 */
public class Config {
    public String api_host = "";
    public int api_netty_update_host_port;
    public String api_netty_update_host = "";
    public String default_device_id = "";
    static Config config;

    public static Config baijiahu() {
        if (config == null) {
            config = new Config();
            config.api_host = "10.161.120.225";
            config.api_netty_update_host = "10.161.120.226";
            config.api_netty_update_host_port = 9101;
        }
        return config;
    }


    //百家湖中学的电子大屏Android盒子没有硬件模块读取不到mac地址，此处写死，单独发布版本
    public static Config baijiahu_p5_electronic() {
        if (config == null) {
            config = new Config();
            config.api_host = "10.161.120.225";
            config.api_netty_update_host = "10.161.120.226";
            config.api_netty_update_host_port = 9101;
            config.default_device_id = "VI:00:00:00:00:P5";
        }
        return config;
    }

    public static Config zhushan() {
        if (config == null) {
            config = new Config();
            config.api_host = "10.160.6.24";
            config.api_netty_update_host = "10.160.6.23";
            config.api_netty_update_host_port = 9101;
        }
        return config;
    }

    public static Config test() {
        if (config == null) {
            config = new Config();
            config.api_host = "192.168.1.208";
            config.api_netty_update_host = "192.168.1.204";
            config.api_netty_update_host_port = 9101;
        }
        return config;
    }
}
